GRAY2CLR

Section: User Commands (1)
Updated: 25-Jun-90
Index Return to Main Contents
 

NAME

gray2clr, unmap - add a colormap to a grayscale image, unmap a color image  

SYNOPSIS

gray2clr [ -<type> ] [ -u ] < gray > color      or

unmap [ -<type> ] < gray > color
 

DESCRIPTION

Adds a colormap to an 8bit grayscale image, allowing it to be displayed on a frame buffer. The image will still be black and white, of course.

If invoked as unmap, or with the -u option, the output is given as RGB values instead of mapped color. This routine can be used to convert mapped color to unmapped color as well. This must be done before fbext is used to resize a mapped color image. Then the result can be remapped using fbquant.  

OPTIONS

-u
unmap, makes the output a 3 plane image, instead of a mapped imsage. This must be done before the image can be resized (with fbext(1)) or quantized (with fbquant(1)).
 

EXAMPLE

Add a colormap to a grayscale file for viewing on a frame buffer:


    % gray2clr -S < foo.8bit > foo.clr

Convert a mapped color image to unmapped and then adjust the aspect ratio:


    % gray2clr -u < foo.gif | fbext -a1 > foo.fbm  

SEE ALSO

fbm(1) for general discussion, pbm(1) for PBM routines.  

BUGS

None known.  

HISTORY

Copyright (C) 1989,1990 by Michael Mauldin. Permission is granted to use this file in whole or in part for any purpose, educational, recreational or commercial, provided that this copyright notice is retained unchanged. This software is available to all free of charge by anonymous FTP and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlm@cs.cmu.edu
07-Apr-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.91) mlm@cs.cmu.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
BUGS
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:53:26 GMT, August 26, 2022